package com.tiger.cloud.service.crm;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tiger.cloud.common.mybatis.MybatisTigerDao;
import com.tiger.cloud.common.mybatis.TigerBaseService;
import com.tiger.cloud.dao.crm.UserInfoDao;
import com.tiger.cloud.model.crm.UserInfo;
import com.tiger.cloud.model.ext.UserAndCompanyInfo;

/**
 * 用户详细信息
 */
@Service("userInfoService")
public class UserInfoService extends TigerBaseService<UserInfo> implements IUserInfoService{
    
    @Autowired
	private UserInfoDao userInfoDao;

	@Override
	public MybatisTigerDao<UserInfo> getEntityDao() {
		return userInfoDao;
	}

	@Override
	public UserAndCompanyInfo getUserAndCompanyInfo(Long userId) {
		return userInfoDao.getUserAndCompanyInfo(userId);
	}
	
	public List<UserInfo> findInUserId(List<Long> userId) {
		return userInfoDao.findInUserId(userId);
	}

	@Override
	public UserInfo findUser(String keyword) {
		return userInfoDao.findUser(keyword);
	}
    
}